def anagram(str1, str2):
    count1 = [0] * 26
    count2 = [0] * 26
    for ch in str1:
        count1[ord(ch) - ord('a')] += 1
    for ch in str2:
        count2[ord(ch) - ord('a')] += 1
    diff_chars = []
    for i in range(26):
        if count1[i] != count2[i]:
            diff_chars.append(chr(i + ord('a')))
    return '<' + ''.join(diff_chars) + '>'

# === DO NOT modify the code below ===
def main():
    a = input()
    b = input()
    print(anagram(a,b))
    
if __name__ == '__main__':
    main()
# === DO NOT modify the code above ===